-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix *toggleothers* behavior for graphs with traces not in legend #4406
Fix *toggleothers* behavior for graphs with traces not in legend #4406
Conversation
it('isolate trace in legend, ignore trace that is not in legend', function(done) { | ||
Promise.resolve() | ||
.then(click(0, 2)) | ||
.then(assertVisible([true, 'legendonly', true])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This used to result [true. 'legendonly', 'legendonly']
it('isolate trace in legend, ignore trace that is not in legend (2)', function(done) { | ||
Promise.resolve() | ||
.then(click(1, 2)) | ||
.then(assertVisible(['legendonly', true, true])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one used to result ['legendonly', true, 'legendonly']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks! 💃
fixes #4389
before: https://codepen.io/alexcjohnson/pen/MWWMVbr?editors=1010
after: https://codepen.io/etpinard/pen/VwYYWer?editors=1010
... and double-click either of the two legend items.
@plotly/plotly_js